#ifndef GRID_H
#define GRID_H

const int GRID_WIDTH =10;//18;
const int GRID_HEIGHT =18;//40;

class grid
{

    public:

       typedef struct {    //struct used to store information of every position of the block_board
        bool full;
        int color;
        }hole;

        grid();
        virtual ~grid();
        int clean_lines();
        hole* Get_board_pos(int row, int column){return &block_board[row][column];};
        void Set_board_pos(int row, int column, bool value, int color);
        void clear_grid();
        int pile_height;

    protected:
    private:

    bool check_line(int line);
    void move_lines(int line);
    hole block_board[GRID_HEIGHT][GRID_WIDTH]; //Array with information about the board



};

#endif // GRID_H
